@extends('layouts.mainlayout')
@section('main')
<!-- listnew -->
@foreach ($bai_viet as $bai_viet)
<div class="panel panel-default">
    <div class="panel-body">
        <div class="news">
            <h4><a href="
                <?php
                $link = "posts/" . $bai_viet->id;
                echo asset($link);
                ?>"
                >
            {{{$bai_viet->tieu_de}}}</a></h4>
            <!--             <i class="glyphicon glyphicon-user"></i> <small>Admin</small>
            <i class="glyphicon glyphicon-calendar"></i> <small>20/8/2014</small> -->
            <!-- <div class="clear"></div> -->
            <hr>
            <div class="clear"></div>
            <p>{{{strip_tags($bai_viet->tom_tat)}}}</p>
            <a class="btn btn-primary readmore" href="<?php
                $link = "posts/" . $bai_viet->id;
                echo asset($link);
            ?>"><i class="fa fa-forward"></i> Xem thêm</a>
            <div class="clear"></div>
        </div>
    </div>
</div>
@endforeach

@stop